package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.WarehouseEntryReceipt;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;


public interface WarehouseEntryReceiptApi {

    @RequestMapping("/insertWhEntryR")
    Dto insertWhEntryR(@RequestBody WarehouseEntryReceipt warehouseEntryReceipt);

    @RequestMapping("/getWhERByWhECode")
    Dto<WarehouseEntryReceipt> getWhERByWhECode(@RequestBody WarehouseEntryReceipt warehouseEntryReceipt);

    @RequestMapping("/delWhEntryR")
    Dto delWhEntryR(@RequestBody WarehouseEntryReceipt warehouseEntryReceipt);

    @RequestMapping("/listWhEntryR")
    Dto<PageInfo<WarehouseEntryReceipt>> listWhEntryR(@RequestBody Map<String, Object> param);

    @RequestMapping("/updateWhEntryRStatus")
    Dto<Integer> updateWhEntryRStatus(@RequestBody List<WarehouseEntryReceipt> warehouseEntryReceiptList);
}
